<?=view("home.header")?>
<?=view("home.nav")?>
<div class="content-wrapper">
    <div class="container">
        <div class="row pad-botm">
            <div class="col-md-12">
                <h4 class="header-line">奖金币转电子币</h4>
            </div>
        </div>
        <div class="row">
            <div class="col-md-12">
                <div class="panel panel-default">
                    <div class="panel-heading">
                        申请转换
                    </div>
                    <div class="panel-body">
                        <p>奖金币余额:<?=$user->Mu_AllMoney?></p>
                        <form class="form" method="post">
                            {{csrf_field()}}
                            <div class="form-group">
                                <label>转换数额</label>
                                <input class="form-control" name="Mut_OutMoney" type="number" min="1">
                                <p class="help-block">请输入1的整数倍</p>
                            </div>
                            <button class="btn btn-info">转账</button>
                        </form>
                    </div>
                </div>
            </div>
            <div class="col-md-12">
                <div class="panel panel-default">
                    <div class="panel-heading">
                        转账记录
                    </div>
                    <div class="panel-body">
                        <div class="col-md-12" style="margin-bottom: 15px;">
                        <form class="form form-inline">
                            从<input name="starttime" type="date" value="<?=$request->input('starttime')?>" class="form-control" placeholder="<?=date("Y-m-d H:i:s")?>">至<input name="endtime" type="date" value="<?=$request->input('endtime')?>" class="form-control"  placeholder="<?=date("Y-m-d H:i:s")?>"><button class="btn btn-info">查找</button>
                        </form>
                        </div>
                        <table class="table table-striped table-bordered table-hover dataTable no-footer" id="dataTables-example" aria-describedby="dataTables-example_info">
                            <thead>
                                <tr role="row">
                                    <th class="sorting_asc" tabindex="0" aria-controls="dataTables-example" rowspan="1" colspan="1" aria-sort="ascending" aria-label="Rendering engine: activate to sort column ascending" style="width: 189px;">会员编号</th>
                                    <th class="sorting" tabindex="0" aria-controls="dataTables-example" rowspan="1" colspan="1" aria-label="Browser: activate to sort column ascending" style="width: 150px;">支出</th>
                                    <th class="sorting" tabindex="0" aria-controls="dataTables-example" rowspan="1" colspan="1" aria-label="Platform(s): activate to sort column ascending" style="width: 150px;">转前余额</th>
                                    <th class="sorting" tabindex="0" aria-controls="dataTables-example" rowspan="1" colspan="1" aria-label="Platform(s): activate to sort column ascending" style="width: 150px;">转后余额</th>
                                    <th class="sorting" tabindex="0" aria-controls="dataTables-example" rowspan="1" colspan="1" aria-label="Platform(s): activate to sort column ascending" style="width: 150px;">收款人</th>
                                    <th class="sorting" tabindex="0" aria-controls="dataTables-example" rowspan="1" colspan="1" aria-label="Platform(s): activate to sort column ascending" style="width: 150px;">收入</th>
                                    <th class="sorting" tabindex="0" aria-controls="dataTables-example" rowspan="1" colspan="1" aria-label="Platform(s): activate to sort column ascending" style="width: 150px;">类型</th>
                                    <th class="sorting" tabindex="0" aria-controls="dataTables-example" rowspan="1" colspan="1" aria-label="Platform(s): activate to sort column ascending" style="width: 150px;">转账时间</th>
                                </tr>
                            <tbody>
                                <?php 
                                    if ($utlogs && count($utlogs) > 0):
                                        foreach ($utlogs as $ml):
                                ?>
                                <tr class="gradeA odd">
                                    <td class="sorting_1"><?=$ml->Mut_Number?></td>
                                    <td class=" ">-<?=$ml->Mut_OutMoney?></td>
                                    <td class=" "><?=$ml->Mut_Oldmoney?></td>
                                    <td class=" "><?=$ml->Mut_Newmoney?></td>
                                    <td class=" "><?=$ml->Mut_RecNumber?></td>
                                    <td class=" "><?=$ml->Mut_AddMoney?></td>
                                    <td class=" "><?=$ml->getType()?></td>
                                    <td class=" "><?=$ml->Mut_CreateTime?></td>
                                </tr>
                                <?php
                                        endforeach;
                                    endif;
                                ?>
                            </tbody>
                        </table>
                        <?=$utlogs->render()?>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<?=view("home.footer")?>
